import 'dart:async';
import 'dart:typed_data';

import 'package:flutter/services.dart';

class OssPlugin {
  // go-flutter插件中的包名，两者必须一致
  static const channel =
      const MethodChannel("bettersun.go-flutter.plugin.oss");
  // go-flutter插件中的函数名，有参
  static Future<dynamic> getObjectList(String p) async =>
      channel.invokeMethod("listObject", p);
  static Future<dynamic> delectObject(String p) async =>
      channel.invokeMethod("delectObject", p);
  static Future<dynamic> putObject(String p,Uint8List bytes) async =>
      channel.invokeMethod("putObject", {p:bytes});
}
